package org.example.myleet.p488;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
//        System.out.println(solution.stabilize(new StringBuilder("RRWWRRBBBRWR")));
        Assert.isTrue(-1 == solution.findMinStep("WRRBBW", "RB"));
        Assert.isTrue(2 == solution.findMinStep("WWRRBBWW", "WRBRW"));
        Assert.isTrue(2 == solution.findMinStep("G", "GGGGG"));
        Assert.isTrue(3 == solution.findMinStep("RBYYBBRRB", "YRBGB"));
        Assert.isTrue(2 == solution.findMinStep("RRWWRRBBRR", "WB"));
        Assert.isTrue(-1 == solution.findMinStep("BRWGWYY", "YGBWY"));
    }
}
